import request from '@/utils/request'

// 查询商品列表
export function pddGoodsList(query) {
  return request({
    url: '/system/pddGoods/list',
    method: 'get',
    params: query
  })
}

// 查询商品SKU列表
export function pddGoodsSkuList(query) {
  return request({
    url: '/system/pddGoods/skuList',
    method: 'get',
    params: query
  })
}

// 新增店铺
export function uploadGoods(data) {
  return request({
    url: '/pdd/uploadGoods',
    method: 'post',
    data: data
  })
}

// 获取新增规则
export function findRoleData(cId,mallId) {
  return request({
    url: '/pdd/findRoleData/'+cId+"/"+mallId,
    method: 'get',
  })
}

// 获取新增规则
export function findvalueSearch(data) {
  return request({
    url: '/pdd/findvalueSearch',
    method: 'post',
    params: data
  })
}

// 获取新增规则
export function findspecGet(data) {
  return request({
    url: '/pdd/specGet',
    method: 'post',
    params: data
  })
}
